package chapter_03_factory.p3_abstractFactory.product;

import chapter_03_factory.p3_abstractFactory.product.cpu.Cpu;
import chapter_03_factory.p3_abstractFactory.product.factory.AbstractFactory;
import chapter_03_factory.p3_abstractFactory.product.mainboard.Mainboard;

/**
 * Created by CharloYao on 2017/3/23.
 */
public class ComputerEngineer {
    private Cpu cpu;
    private Mainboard mainboard;

    public void makeComputer(AbstractFactory af){
        this.cpu = af.createCpu();
        this.mainboard = af.createMainboard();
        System.out.println("cpu的针脚数"+this.cpu.getPin());
        this.mainboard.installCPU();
    }
}
